package com.cq.hd.order.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.order.api.TbMonthSettleBillWithdrawalApi;
import com.cq.hd.order.api.vo.MonthSettleBillVo;
import com.cq.hd.order.service.TbMonthSettleBillWithdrawalService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class TbMonthSettleBillWithdrawalController implements TbMonthSettleBillWithdrawalApi {

    @Resource
    private TbMonthSettleBillWithdrawalService monthSettleBillWithdrawalService;

    @Override
    public Result<List<MonthSettleBillVo>> listByWithdrawalId(Long withdrawalId) {
        return ResultGenerator.success(monthSettleBillWithdrawalService.listMonthSettleBillByWithdrawalId(withdrawalId));
    }

}
